﻿
@{
    ViewBag.Title = "Fraud Checker";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="~/js/sale.js"></script>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="fieldset">
            <div class="legend"><span>Double click an order to add or view notes</span></div>
            <div class="row-fluid checker-tbl">
                @Html.Action("LoadFraudTable")
            </div>
            <div class="row-fluid text-right" style="margin-top: 10px;">
                <input type="hidden" id="listorder" value="" />
                <input type="button" class="btn btn-danger" value="Approve Checked Orders" onclick="approveListOrder()" />
            </div>
        </div>
        <div class="row-fluid order-detail">
            <div class="span6">
                <div class="fieldset">
                    <div class="legend"><span>Order Details</span></div>
                    <input type="hidden" id="transactionid" value="" />
                    <div class="row-fluid">
                        <div class="span6">
                            <div class="row-fluid">
                                <div class="span4">Order Ref</div>
                                <div class="span8">
                                    <input type="text" readonly="readonly" class="input-block-level" id="orderref" />
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span4">Value</div>
                                <div class="span8">
                                    <input type="text" readonly="readonly" class="input-block-level" id="amount" />
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span4">Customer Name</div>
                                <div class="span8">
                                    <input type="text" readonly="readonly" class="input-block-level" id="customername" />
                                </div>
                            </div>
                        </div>
                        <div class="span6">
                            <div class="fieldset">
                                <div class="legend"><span>Tips</span></div>
                                <div class="row-fluid">
                                    <label id="tips">Ensure that the shipping address is a UK address.</label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row-fluid" style="margin-top: 10px;">
                        Comm Idea Message
                        <div class="row-fluid">
                            <textarea id="message" rows="4" readonly="readonly" class="span12"></textarea>
                        </div>
                    </div>
                    <div class="row-fluid">
                        <div class="span6">
                            Shipping Address
                           <div class="row-fluid">
                               <textarea id="shippingaddress" readonly="readonly" rows="4" class="span12"></textarea>
                            </div>
                        </div>
                        <div class="span6">
                            Billing Address
                            <div class="row-fluid">
                                <textarea id="billingaddress" readonly="readonly" rows="4" class="span12"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="span6">
                <div class="fieldset">
                    <div class="legend"><span>Fraud Checker Notes</span></div>
                    <div class="row-fluid">
                        <textarea id="fraudnote" rows="15" class="span12"></textarea>
                    </div>
                </div>
                <div class="row-fluid text-right">
                    <input type="button" class="btn btn-danger" value="Approve Order" onclick="approveOrder()" />
                    <input type="button" class="btn btn-primary" value="Save Notes" onclick="saveNotes()" />
                </div>
            </div>
        </div>

    </div>
</div>
